# -*- conding:UTF-8 -*-

'''
@ Project: one-group
@ File: user.py
@ Author: 孙博
@ Date：2022/6/8 20:00

'''
from flask_restful import fields

channel_fields = {
    'cid': fields.Integer,
    'cname': fields.String,
    'ctime': fields.DateTime,
}

news_fields = {
    'user_id': fields.Integer,
    'nid': fields.Integer,
    'title': fields.String,
    'cover': fields.String,
    'content': fields.String,
    'comment_count': fields.Integer,
    'good_count': fields.Integer,
    'ctime': fields.DateTime,
}

comments_fields = {
    'cmid': fields.Integer,
    'user_id': fields.Integer,
    'article_id': fields.Integer,
    'parent_id': fields.Integer,
    'like_count': fields.Integer,
    'reply_count': fields.Integer,
    'content': fields.String,
    'is_top': fields.Integer,
    'status': fields.Integer,
    'ctime': fields.DateTime
}

user_fields = {
    'uname': fields.String,
    'profile_photo': fields.String,
    'created_time': fields.DateTime,
    'gender': fields.Integer,
    'mobile': fields.String,
}